package org.example;

import org.example.bootstrap.ProviderBootstrap;
import org.example.model.ServiceRegisterInfo;
import org.example.service.UserService;
import org.example.service.impl.UserServiceImpl;

import java.util.ArrayList;
import java.util.List;

public class ProviderExample4 {
    public static void main(String[] args) {
        //要注册的服务
        List<ServiceRegisterInfo<?>> serviceRegisterInfoList = new ArrayList<>();
        ServiceRegisterInfo serviceRegisterInfo = new ServiceRegisterInfo(UserService.class.getName(), UserServiceImpl.class);
        serviceRegisterInfoList.add(serviceRegisterInfo);
        //服务提供者初始化
        ProviderBootstrap.init(serviceRegisterInfoList);
    }
}
